#!/bin/sh

osd_num=$1

ceph osd out  osd.$osd_num
/etc/init.d/ceph stop osd.$osd_num
ceph osd crush remove  osd.$osd_num
ceph auth del osd.$osd_num
ceph osd rm $osd_num

umount /var/lib/ceph/osd/ceph-$osd_num
